package com.oceansoft.mobile.biz.api.entity;

import org.springframework.jdbc.core.RowMapper;

import java.sql.ResultSet;
import java.sql.SQLException;

public class WxDict {
	private int dbid;//部门ID
	private String name;//名称
	private String code;//编码
	private int deep;//深度，层级
	private int parentid;//父ID
	private String parentname;//父名称
	private int ordernum;//排序
	private String service;//业务描述

	public String getService() {
		return service;
	}

	public void setService(String service) {
		this.service = service;
	}

	public int getDbid() {
		return dbid;
	}

	public void setDbid(int dbid) {
		this.dbid = dbid;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	

	public String getParentname() {
		return parentname;
	}

	public void setParentname(String parentname) {
		this.parentname = parentname;
	}

	public int getDeep() {
		return deep;
	}

	public void setDeep(int deep) {
		this.deep = deep;
	}

	public int getParentid() {
		return parentid;
	}

	public void setParentid(int parentid) {
		this.parentid = parentid;
	}

	public int getOrdernum() {
		return ordernum;
	}

	public void setOrdernum(int ordernum) {
		this.ordernum = ordernum;
	}

	public static RowMapper<WxDict> getservice() {
		return new RowMapper<WxDict>() {
			@Override
			public WxDict mapRow(ResultSet rs, int index) throws SQLException {
				WxDict obj = new WxDict();
				obj.setService(rs.getString("service"));
				System.out.print(obj.getService()+"----------");
				return obj;
			}
		};
	}
}
